<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace backend\assets;

use yii\web\AssetBundle;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'status/css/bootstrap.css',
        'status/css/site.css',
        'status/css/bootstrap.min.css?v=3.4.0',
        'status/font-awesome/css/font-awesome.css?v=4.3.0',
        'status/css/plugins/morris/morris-0.4.3.min.css',
        'status/js/plugins/gritter/jquery.gritter.css',
        'status/css/animate.css',
        'status/css/style.css?v=2.2.0',
        'status/css/bootstrap-treeview.css',
      /*  'status/css/site.css',
        'status/css/bootstrap.min.css',
        'status/css/bootstrap-responsive.min.css',
        'status/css/font-awesome.min.css',
        'status/css/style-metro.css',
        'status/css/style.css',
        'status/css/style-responsive.css',
        'status/css/default.css',
        'status/css/uniform.default.css',*/
    ];
    public $js = [
        'status/js/layer.js',
        'status/js/extend/layer.ext.js',
        'status/js/bootstrap.min.js?v=3.4.0',
        'status/js/plugins/metisMenu/jquery.metisMenu.js',
        'status/js/plugins/slimscroll/jquery.slimscroll.min.js',
        'status/js/hplus.js?v=2.2.0',
        'status/js/plugins/pace/pace.min.js',
        'status/js/plugins/jeditable/jquery.jeditable.js',
        'status/js/bootstrap-treeview.js',
        'status/js/jquery-session.js',
        'status/app/common.js',
        'status/js/jquery.min.js',
        'assets/2f3fee8c/tan.js',
       /* 'status/js/jquery-1.10.1.min.js',
        'status/js/jquery-migrate-1.2.1.min.js',
        'status/js/jquery-ui-1.10.1.custom.min.js',
        'status/js/bootstrap.min.js',
        'status/js/excanvas.min.js',
        'status/js/respond.min.js',
        'status/js/jquery.slimscroll.min.js',
        'status/js/jquery.blockui.min.js',
        'status/js/jquery.cookie.min.js',
        'status/js/jquery.uniform.min.js',
        'status/js/app.js',*/
    ];
    public $depends = [
       'yii\web\yiiAsset',
    ];
    //定义按需加载JS方法，注意加载顺序在最后
    public static function addScript($view, $jsfile) {
        $view->registerJsFile($jsfile, [AppAsset::className(), 'depends' => 'backend\assets\AppAsset']);
    }

    //定义按需加载css方法，注意加载顺序在最后
    public static function addCss($view, $cssfile) {
        $view->registerCssFile($cssfile, [AppAsset::className(), 'depends' => 'backend\assets\AppAsset']);
    }

}
